/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package restaurante.util.persistencia;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author Administrador
 */

public interface DAOGenerico<T> extends Serializable{
    public T salvar(T obj) throws Exception;
    public void excluir(T obj) throws Exception;
    public List<T> obter(Class<T> classe) throws Exception;
    public T obter(Class<T> classe, Long id) throws Exception ;
    //public void addCriterio(String); ???
}
